/*
package com.ww.springboot.pdf;

import cn.hutool.http.HttpRequest;
import com.ww.springboot.boot.utils.Func;

import java.io.IOException;
import java.util.List;
import java.util.stream.Collectors;

public class ReadPdfText {


    public static void main(String[] args) throws InterruptedException, IOException {
        String ss = "UZ320804946FR";

        List<String> collect = Func.toStrList(ss);

        collect.forEach(s -> {

            try {
                String url = "https://bullfrog-master.oss-cn-shenzhen.aliyuncs.com/delivery_label/" + s + ".pdf";

                byte[] bytes = HttpRequest.get(url).execute().bodyBytes();

                List<String> textList = PdfUtil.readTextByPdf(bytes);
                System.out.println(textList.stream().collect(Collectors.joining()));

                List<String> barcodeList = PdfUtil.readBarcodeByStream(bytes);
                System.out.println(barcodeList);


                if (!textList.contains(s) && !barcodeList.contains(s)) {
                    System.out.println("不匹配订单:" + s);
                }

            } catch (Exception e) {
                System.out.println("异常：" + s);
                e.printStackTrace();
            }
        });
    }
}*/
